﻿//  Copyright (c) 2011 Ray Liang (http://www.dotnetage.com)
//  Licensed MIT: http://www.opensource.org/licenses/mit-license.php

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace DNA.Mvc
{
    /// <summary>
    /// Define the User registed successful event
    /// </summary>
    public class UserRegistedEvent : EventBase
    {
        public UserRegistedEvent(string username, string password, string email)
        {
            if (string.IsNullOrEmpty(username)) throw new ArgumentNullException("username");
            if (string.IsNullOrEmpty(password)) throw new ArgumentNullException("password");
            if (string.IsNullOrEmpty(email)) throw new ArgumentNullException("email");

            UserName = username;
            Password = password;
            Email = email;
        }

        /// <summary>
        /// Gets/Sets the user's password.
        /// </summary>
        public string Password { get; set; }

        /// <summary>
        /// Gets/Sets the registed user name.
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// Gets/Sets the user mail.
        /// </summary>
        public string Email { get; set; }
    }
}
